<?php

/**
* Map class
* keep information for a map.
* @author dmq (master@dmq.se)
*/
class Map
{
	private $id;
	private $name;
	private $width;
	private $height;
	private $tiles;

	/**
    * The constructor
    * @param $id Int the mapID
    * @param $name String the name of the map
    * @param $width Int the width of the map
   	* @param $height Int the height of the map
   	* @param $tiles String the tiles on the map 
    */
	public function __construct( $id, $name, $width, $height, $tiles )
	{
		$this->id = $id;
		$this->name = $name;
		$this->width = $width;
		$this->height = $height;
		$this->tiles = $tiles;
	}

	/**
	* function id
	* @return returns the mapID
	*/
	public function id()
	{
		return $this->id;
	}

	/**
	* function name
	* @return returns the map name
	*/
	public function name()
	{
		return $this->name;
	}

	/**
	* function width
	* @return returns the width of the map
	*/
	public function width()
	{
		return $this->width;
	}

	/**
	* function height
	* @return returns the height of the map
	*/
	public function height()
	{
		return $this->height;
	}

	/**
	* function tiles
	* @return returns the tiles of the map
	*/
	public function tiles()
	{
		return $this->tiles;
	}
}
